package com.book.book.service.impl;

import com.book.iphone.domain.AppraiseDo;
import com.book.iphone.domain.DriftDo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.book.book.dao.BooklogDao;
import com.book.book.domain.BooklogDO;
import com.book.book.service.BooklogService;



@Service
public class BooklogServiceImpl implements BooklogService {
	@Autowired
	private BooklogDao booklogDao;
	
	@Override
	public BooklogDO get(Integer id){
		return booklogDao.get(id);
	}
	
	@Override
	public List<BooklogDO> list(Map<String, Object> map){
//		return booklogDao.list(map);
		return booklogDao.listWithName(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return booklogDao.count(map);
	}
	
	@Override
	public int save(BooklogDO booklog){
		return booklogDao.save(booklog);
	}
	
	@Override
	public int update(BooklogDO booklog){
		return booklogDao.update(booklog);
	}
	
	@Override
	public int remove(Integer id){
		return booklogDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return booklogDao.batchRemove(ids);
	}

	@Override
	public List<DriftDo> getDrift(Map<String, Object> map) {
		return booklogDao.getDrift(map);
	}

	@Override
	public List<AppraiseDo> getBooklogByBookName(String bookName) {
		return booklogDao.getBooklogByBookName(bookName);
	}

	@Override
	public List<AppraiseDo> getBooklogByBookNameNoLimit(String bookName) {
		return booklogDao.getBooklogByBookNameNoLimit(bookName);
	}

}
